package com.sunbeam.common.utils.junit;

import java.util.List;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.sunbeam.common.junit.accessories.StaffInfoEntity;
import com.sunbeam.common.utils.XmlCommonUtils;

/**
 * @Title: JUnitDemo.java
 * @Package com.sunbeam.common.junit
 * @Description: TODO
 * @author lyz lyzpoq_gmail_com
 * @date 2014/01/09 9:16:07
 * @version V1.0
 */
public class XmlCommonUtilsTest {

	@Before
	public void before(){
		System.out.println("Before");
	}
	
	@Test
	public void getStaffInfosTest(){
		List<StaffInfoEntity> staffInfos=XmlCommonUtils.getStaffInfos();
		boolean firstFlg=true;
		for(StaffInfoEntity staffInfo:staffInfos){
			if(firstFlg){
				firstFlg=false;
				System.out.println("No\tName\tPhone\tAddr");
			}
			System.out.println(staffInfo.getNumber()+"\t"+staffInfo.getName()+"\t"+staffInfo.getPhone()+"\t"+staffInfo.getAddress());
		}
	}

	@After
	public void after(){
		System.out.println("After");
	}
}

